import url from '@/tool/index.js'
export const teacherCharts = (datetype="",month="",year="",startdate="",enddate="",page=1) => { //
	return new Promise(resolve => {
		uni.request({
			url: url+'/api/coachcenter.coach/statistics',
			data: {
				coachtoken:uni.getStorageSync('teacherToken'),
				datetype:datetype,
				month:month,
				year:year,
				startdate:startdate,
				enddate:enddate,
				page:page
			},
			method: 'POST',
			success: (res) => resolve(res.data),
		});
	})
}
